package pack0619;

import java.util.Scanner;

public class DemoJ {
    public static void main(String[] args){
        Scanner scan=new Scanner(System.in);
        System.out.println("输入两个数：");
        int x= scan.nextInt();
        int y= scan.nextInt();
        for (int i=1;i<x;i++){
            if (x%i==0&&y%i==0){
                System.out.println(i);
            }
        }
        for (int j=1;j<=y;j++){
            if (x%1!=0);
        }
    }
}
